package com.cskaoyan.controller;

import com.cskaoyan.service.LogService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.LogVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ description:
 * - 操作日志
 * - 显示
 * @ author:台
 **/
@RestController
public class LogController {

    @Autowired
    LogService logService;

    @RequestMapping("admin/log/list")
    public BaseRespVo logList(Integer page, Integer limit, String sort,String desc,String name){
        LogVo logVo = logService.logList(page,limit,sort,desc,name);
        BaseRespVo<Object> baseRespVo = new BaseRespVo<>();
        baseRespVo.setData(logVo);
        return baseRespVo;
    }
}
